package kaka.utils
{
	import mx.utils.ObjectUtil;

	public class ObjectUtils
	{
		public function ObjectUtils()
		{
		}
		/**遍历对象属性 返回该对象下所有属性**/ 
		public static function getObjectAllProperty(ref:Object):Array
		{
			var attributes:Array=[];
			var classInfo:Object=ObjectUtil.getClassInfo(ref);
			var qNames:Array=classInfo["properties"];
			var length:int=qNames.length;
			for(var i:int;i<length;i++)
			{
				attributes.push((qNames[i] as QName).localName);
			}
			return attributes;
		}
	}
}